<!DOCTYPE html>
<html><head>
        <meta charset="utf-8">
    <title>{$settitle.title}</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="__admin__/style/bootstrap.css" rel="stylesheet">
    <link href="__admin__/style/font-awesome.css" rel="stylesheet">
    <link href="__admin__/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__admin__/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="__admin__/style/demo.css" rel="stylesheet">
    <link href="__admin__/style/typicons.css" rel="stylesheet">
    <link href="__admin__/style/animate.css" rel="stylesheet">

    <!--百度编辑器-->
    <script src="__plus__/ueditor/ueditor.config.js"></script>
    <script src="__plus__/ueditor/ueditor.all.min.js"></script>
    <script src="__plus__/ueditor/lang/zh-cn/zh-cn.js"></script>
    
</head>
<body>
    <!-- 头部 -->
    {include file="common/top"}
    <!-- /头部 -->
    
    <div class="main-container container-fluid">
        <div class="page-container">
        <!-- 左部 -->   
            {include file="common/left"}
        <!-- /左部 -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <a href="#">{$settitle.first}</a>
                        </li>
                        <li>
                            <a href="#">{$settitle.second}</a>
                        </li>
                        <li class="active">
                            {$settitle.third}
                        </li>
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-header bordered-bottom bordered-blue">
                <span class="widget-caption">{$settitle.third}</span>
            </div>
            <div class="widget-body">
                <div id="horizontal-form">
                    <form class="form-horizontal" role="form" action="" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="id" value="{$articles.id}">
                        <div class="form-group">
                            <label class="col-sm-2 control-label no-padding-right">所属栏目</label>
                            <div class="col-sm-6">
                                <select name="cat_id">
                                    <option value="">选择栏目</option>
                                    {volist name="cateRes" id="cate"}
                                    <option {if condition="$cate['id'] eq $articles['cat_id']"}selected="selected"{/if} {in name="$cate['id']" value="1,2" } disabled="disabled" {/in} value="{$cate.id}"><?php echo str_repeat('------|', $cate['level'])?>{$cate.cate_name}</option>
                                    {/volist}
                                </select>
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>

                        <div class="form-group">
                            <label for="brand_name" class="col-sm-2 control-label no-padding-right">文章标题</label>
                            <div class="col-sm-6">
                                <input class="form-control"  value="{$articles.title}" placeholder="" name="title" required="" type="text">
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>

                        <div class="form-group">
                            <label for="brand_name" class="col-sm-2 control-label no-padding-right">分享标题</label>
                            <div class="col-sm-6">
                                <input class="form-control" value="{$articles.share_title}" placeholder="" name="share_title" required="" type="text">
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>

                        <div class="form-group">
                            <label for="brand_url" class="col-sm-2 control-label no-padding-right">文章作者</label>
                            <div class="col-sm-6">
                                <input class="form-control" value="{$articles.author}"  placeholder="" name="author" type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="brand_url" class="col-sm-2 control-label no-padding-right">发布人邮箱</label>
                            <div class="col-sm-6">
                                <input class="form-control" value="{$articles.email}"  placeholder="" name="email" type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="keywords" class="col-sm-2 control-label no-padding-right">关键词</label>
                            <div class="col-sm-6">
                                <textarea name="keywords" class="form-control">{$articles.keywords}</textarea>
                            </div>
                        </div>


                        <div class="form-group">
                            <label for="description" class="col-sm-2 control-label no-padding-right">描述</label>
                            <div class="col-sm-6">
                                <textarea name="description" class="form-control">{$articles.keywords}</textarea>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="link_url" class="col-sm-2 control-label no-padding-right">外链</label>
                            <div class="col-sm-6">
                                <input class="form-control" value="{$articles.link_url}" placeholder="" name="link_url" type="text">
                            </div>
                        </div>

                       <div class="form-group">
                            <label for="thumb" class="col-sm-2 control-label no-padding-right">缩略图</label>
                            <div class="col-sm-6">
                                <input  name="thumb"  type="file">
                                {if condition="$articles['thumb'] neq ''"}
                                    <img src="__imgurl__/article/{$articles.thumb}" height="50px;">
                                {else/}
                                    暂无图片
                                {/if}
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">是否置顶</label>
                            <div class="col-sm-6">
                                <div class="radio" style="float:left;">
                                    <label>
                                        <input <?php if($articles['show_top']==1):?>checked="checked"<?php endif;?> class="colored-success" value="1" name="show_top" type="radio">
                                        <span class="text">置顶</span>
                                    </label>
                                </div>
                                <div class="radio" style="padding-left:160px;">
                                    <label>
                                        <input <?php if($articles['show_top']==0):?>checked="checked"<?php endif;?> class="colored-blueberry" value="0" name="show_top" type="radio">
                                        <span class="text">不置顶</span>
                                    </label>
                                </div>
                            </div>
                        </div> 


                         <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">是否热门</label>
                            <div class="col-sm-6">
                                <div class="radio" style="float:left;">
                                    <label>
                                        <input <?php if($articles['show_hot']==1):?>checked="checked"<?php endif;?> class="colored-success" value="1" name="show_hot" type="radio">
                                        <span class="text">热门</span>
                                    </label>
                                </div>
                                <div class="radio" style="padding-left:160px;">
                                    <label>
                                        <input <?php if($articles['show_hot']==0):?>checked="checked"<?php endif;?> class="colored-blueberry" value="0" name="show_hot" type="radio">
                                        <span class="text">冷门</span>
                                    </label>
                                </div>
                            </div>
                        </div>


                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">是否显示</label>
                            <div class="col-sm-6">
                                <div class="radio" style="float:left;">
                                    <label>
                                        <input <?php if($articles['show_status']==1):?>checked="checked"<?php endif;?> class="colored-success" value="1" name="show_status" type="radio">
                                        <span class="text">显示</span>
                                    </label>
                                </div>
                                <div class="radio" style="padding-left:160px;">
                                    <label>
                                        <input <?php if($articles['show_status']==0):?>checked="checked"<?php endif;?>  class="colored-blueberry" value="0" name="show_status" type="radio">
                                        <span class="text">隐藏</span>
                                    </label>
                                </div>
                            </div>
                        </div> 

                        <div class="form-group">
                            <label for="content" class="col-sm-2 control-label no-padding-right">内容</label>
                            <div class="col-sm-6">
                                <textarea id="content" name="content">{$articles.content}</textarea>
                            </div>
                        </div>                
                        <div style="margin-top:120px;" class="form-group">
                            <div style="margin-bottom:10px;" class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default">保存信息</button>
                                <button style="margin-left:80px;" type="button" class="btn btn-default"  onClick="javascript :history.go(-1);">返回上页</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
        </div>  
    </div>

        <!--Basic Scripts-->
    <script src="__admin__/style/jquery_002.js"></script>
    <script src="__admin__/style/bootstrap.js"></script>
    <script src="__admin__/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__admin__/style/beyond.js"></script>
    

    <script type="text/javascript">
    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    UE.getEditor('content',{initialFrameWidth:800,initialFrameHeight:400,});
    </script>
</body></html>